package com.xcity.pomelo.response;

import com.xcity.game.activity.surprise7days.Surprise7DaysActivityService;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.RESPONSE)
public class ActivitySurprise7DaysInfoResponse extends Response {
	
	private byte state; // -1-已摇取, 0-可摇取数字, 1-可领奖, 2-已领奖
	private int days; // 当前处于第几天（1~7）
	private short[] nums; // length=7（个位数: nums[0]，十位数：nums[1]...-1表示该位置还未摇取）
	private int freeTimes; // 剩余免费摇取次数
	private int costStone; // 额外摇取消耗钻石数

	public ActivitySurprise7DaysInfoResponse(int serial, byte state, int days, short[] nums, int freeTimes, int costStone) {
		super(serial);
		this.state = state;
		this.days = days >= Surprise7DaysActivityService.MAX_DAYS ? Surprise7DaysActivityService.MAX_DAYS : days;
		this.nums = nums;
		this.freeTimes = freeTimes;
		this.costStone = costStone;
	}

	public byte getState() {
		return state;
	}

	public void setState(byte state) {
		this.state = state;
	}

	public int getDays() {
		return days;
	}

	public void setDays(int days) {
		this.days = days;
	}

	public short[] getNums() {
		return nums;
	}

	public void setNums(short[] nums) {
		this.nums = nums;
	}

	public int getFreeTimes() {
		return freeTimes;
	}

	public void setFreeTimes(int freeTimes) {
		this.freeTimes = freeTimes;
	}

	public int getCostStone() {
		return costStone;
	}

	public void setCostStone(int costStone) {
		this.costStone = costStone;
	}
	
}
